package common;

import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;

/**
 * @author LinLe
 * @create 2020-12-21 23:06
 */
//该程序中所用的常量
public interface Constants {
    
        int SERVER_PORT = 45678;
        
        Charset DEFAULT_CHARSET = StandardCharsets.UTF_8;
        
        char MESSAGE_SEP = Character.UNASSIGNED;
        String SPACE_STRING = " ";
        String MESSAGE_SEP_STR = String.valueOf(Character.UNASSIGNED);
        
        String ADMIN_NAME = "admin";
        
        String USER_NAME_PASS = "UserNamePass";
        
        String COMMAND_INTRODUCTION = "欢迎来到聊天室，你可以使用@admin list查看所有在线用户，使用@用户名聊跟某个用户聊天，如果和同一个用户聊天，后续的消息则无需再次输入@，可以使用@admin logoff离开聊天室。";
        
        String CHAT_WITH_START = "@";
        
        String NO_NAME = "anonymous";
        
        String SERVER_COMMAND_LOGOFF = "logoff";
        
        String SERVER_COMMAND_LIST = "list";
        
        String BYE = "bye";
        
        String MESSAGE_BREAK = "\n";
        
        
}
